import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      component: () => import('../views/Account/LoginView.vue'),
    },
    {
      path:'/index',
      component: () => import('../views/Menu/MenuList.vue'),
      children:[
        {
          path:'/FormTypeInfo/FromTypeInfoList',//表单类型页面
          component: () => import('../views/FormTypeInfo/FromTypeInfoList.vue'),
        },
        {
          path:'/FormInfo/FormAdmin',//表单页面
          component: () => import('../views/FormInfo/FormAdmin.vue'),
        },
        {
          path:'/FormNode/FormNodeAdmin',//表单节点页面
          component: () => import('../views/FormNode/FormNodeAdmin.vue'),
        },
        {
          path:'/instance/create',//创建应用页面
          component: () => import('../views/Instance/Create.vue'),
        },
        {
          path:'/instance/MyTodo',//我的待办页面
          component: () => import('../views/Instance/MyTodo.vue'),
        },
      ]
    },

  ],
})

export default router
